package james.gan.remoting.api;

@SuppressWarnings("serial")
public class RemotingException extends Exception {

	private String serverAddress;
	private String ClientAddress;

	public RemotingException() {
		super();
	}

	public RemotingException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public RemotingException(String message, Throwable cause) {
		super(message, cause);
	}

	public RemotingException(String message) {
		super(message);
	}

	public RemotingException(Throwable cause) {
		super(cause);
	}

	public RemotingException(String serverAddress, String clientAddress, Throwable cause) {
		super("Failed :" + clientAddress + "-->" + serverAddress, cause);
		this.serverAddress = serverAddress;
		ClientAddress = clientAddress;
	}

	public String getServerAddress() {
		return serverAddress;
	}

	public String getClientAddress() {
		return ClientAddress;
	}

}
